package org.wevil.java17.demo;

import java.util.Map;

/**
 * Map测试
 */
public class MapDemo {

    public static void main(String[] args) {
        mapOf();
    }

    /**
     * 测试 Map.of()快速初始化Map
     * */
    public static void mapOf(){
        Map<String, String> map = Map.of(
                "name", "wevil",
                "age", "13"
        );
        System.out.println(map);
    }
}
